// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.modding-profile-vote-card {
  @_top: modding-profile-vote-card;
  @_content-gutter-base: 15px;

  display: flex;
  align-items: center;
  margin: 5px;
  flex: none;
  background: hsl(var(--hsl-b3));
  .default-border-radius();
  min-width: 275px;
  padding: 10px;
  overflow: hidden;

  &__avatar {
    width: @beatmap-discussion--avatar-size;
    height: @beatmap-discussion--avatar-size;
    flex: none;
  }

  &__content {
    display: flex;
    padding: 10px @_content-gutter-base;
    flex-direction: column;
    flex: none;
    min-width: 0;

    @media @desktop {
      flex-direction: row;
      flex: 1;
    }

    .@{_top}--reply & {
      @media @desktop {
        padding-left: @beatmap-discussion--reply-padding;
        padding-right: @beatmap-discussion--reply-padding;
      }
    }

    .@{_top}--new-reply & {
      padding-bottom: 0;
    }
  }

  &__user {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 0 5px;
    height: @beatmap-discussion--avatar-size;
  }

  &__user-badge {
    min-height: 16px;
    margin-top: 5px;
  }

  &__user-link {
    color: hsl(var(--hsl-c1));
  }

  &__user-row {
    display: flex;
    align-items: baseline;
  }

  &__user-stripe {
    align-self: stretch;
    background-color: var(--group-colour, @osu-colour-b5);
    border-radius: 1px;
    flex: none;
    width: 2px;
  }

  &__user-text {
    font-size: @font-size--normal-2;
    font-weight: bold;
    max-width: 120px;
  }

  &__votes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    margin-left: 5px;
  }

  &__score {
    font-size: 18px;
  }

  &__count {
    font-size: 9px;
    color: @osu-colour-f1;
  }
}
